/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chapter3;

/**
 *
 * @author Denise Carolina
 */
public class SelfTest9 {

    static String s = "";
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
       int x = 4;
       Boolean y = true;
       short[] sa = {1,2,3};

       doStuff(x,y);
       doStuff(x);
       doStuff(sa, sa);
       System.out.println("s:: " + s);

    }

    static void doStuff(Object o){s += "1";}
    static void doStuff(Object ... o){s += "2";}
    static void doStuff(Integer i){s += "3";}
    static void doStuff(Long l){s += "4";}
    
}
